package com.tjhzzx.ibmsSupervisor.model.user;

import com.tjhzzx.ibmsSupervisor.enums.BTreeMenuItemType;
import com.tjhzzx.ibmsSupervisor.model.search.BSearchParamRoot;

import javax.baja.agent.BPxView;
import javax.baja.sys.*;

//@NiagaraProperty(
//    name = "title", type = "baja:String",
//    defaultValue = ""
//)
//
//@NiagaraProperty(
//    name = "ord", type = "baja:Ord",
//    defaultValue = "BOrd.DEFAULT"
//)

//@NiagaraType
public class BUserTreeMenuItem extends BComponent {
    /*+ ------------ BEGIN BAJA AUTO GENERATED CODE ------------ +*/
    /*@ $com.tjhzzx.thinkinglabSupervisor.entities.menu.BTreeMenuItem(3475654544)1.0$ @*/
    /* Generated Thu Mar 14 18:44:39 CST 2019 by Slot-o-Matic (c) Tridium, Inc. 2012 */

////////////////////////////////////////////////////////////////
// Property "title"
////////////////////////////////////////////////////////////////

    /**
     * Slot for the {@code title} property.
     *
     * @see #getTitle
     * @see #setTitle
     */
    public static final Property title = newProperty(Flags.READONLY, "User Management", null);

    /**
     * Get the {@code title} property.
     *
     * @see #title
     */
    public String getTitle() {
        return getString(title);
    }

    /**
     * Set the {@code title} property.
     *
     * @see #title
     */
    public void setTitle(String v) {
        setString(title, v, null);
    }

    public static final Property nIcon = newProperty(Flags.READONLY, "user", null);

    public String getNIcon() {
        return getString(nIcon);
    }

    public void setNIcon(String v) {
        setString(nIcon, v, null);
    }

    public static final Property treeMenuItemType = newProperty(Flags.READONLY, BTreeMenuItemType.page, null);

    public BTreeMenuItemType getTreeMenuItemType() {
        return (BTreeMenuItemType) get(treeMenuItemType);
    }

    public void setTreeMenuItemType(BTreeMenuItemType v) {
        set(treeMenuItemType, v, null);
    }

    public static final Property pagePath = newProperty(0, "/subsystem/user", null);

    public String getPagePath() {
        return getString(pagePath);
    }

    public void setPagePath(String v) {
        setString(pagePath, v, null);
    }

    public static final Property pxView = newProperty(Flags.READONLY, new BPxView(), null);

    public BPxView getPxView() {
        return (BPxView) get(pxView);
    }

    public void setPxView(BPxView v) {
        set(pxView, v, null);
    }

    public static final Property searchParamRoot = newProperty(Flags.READONLY, new BSearchParamRoot(), null);

    public BSearchParamRoot getSearchParamRoot() {
        return (BSearchParamRoot) get(searchParamRoot);
    }

    public void setSearchParamRoot(BSearchParamRoot v) {
        set(searchParamRoot, v, null);
    }

    public static final Property url = newProperty(Flags.READONLY, "外部链接 http://", null);

    public String getUrl() {
        return getString(url);
    }

    public void setUrl(String v) {
        setString(url, v, null);
    }

////////////////////////////////////////////////////////////////
// Type
////////////////////////////////////////////////////////////////

    @Override
    public Type getType() {
        return TYPE;
    }

    public static final Type TYPE = Sys.loadType(BUserTreeMenuItem.class);

    /*+ ------------ END BAJA AUTO GENERATED CODE -------------- +*/

}
